Menu Top
Classwise Concept with Examples
6th 7th 8th 9th 10th 11th 12th

Class 12th Chapters
1. Relations and Functions 2. Inverse Trigonometric Functions 3. Matrices
4. Determinants 5. Continuity and Differentiability 6. Application of Derivatives
7. Integrals 8. Application of Integrals 9. Differential Equations
10. Vector Algebra 11. Three Dimensional Geometry 12. Linear Programming
13. Probability

Content On This Page
Relations on a Set Functions Composition of Functions
Invertible Functions Binary Operations


Chapter 1 Relations and Functions (Concepts)

This chapter significantly deepens our understanding of Relations and Functions, building upon the foundational concepts introduced in Class 11. We move towards a more abstract and formal analysis, focusing on classifying relations and functions based on specific structural properties, exploring how functions can be combined, and determining when functions can be 'undone' through inversion. These concepts are absolutely central to higher mathematics, providing the language and tools to describe mappings and structures across various mathematical disciplines.

We begin by revisiting the definition of a Relation $R$ on a non-empty set $A$ as any subset of the Cartesian product $A \times A$ ($R \subseteq A \times A$). Our primary focus shifts to classifying relations based on how elements relate to themselves and each other. Three key properties are investigated:

A relation $R$ on a set $A$ that possesses all three of these properties – reflexive, symmetric, AND transitive – is called an Equivalence Relation. Equivalence relations are fundamental as they partition the set $A$ into disjoint subsets called Equivalence Classes, where each class consists of elements that are related to each other.

Next, we delve deeper into Functions $f: A \to B$. Recall that a function is a special type of relation where every element in the domain $A$ is associated with exactly one element in the codomain $B$. We now classify functions based on their mapping behavior:

Determining if a function satisfies these properties often involves rigorous analytical proofs or finding specific counterexamples.

We then explore the Composition of Functions. Given two functions $f: A \to B$ and $g: B \to C$ (such that the range of $f$ is a subset of the domain of $g$), their composition, denoted $g \circ f$ (read as "g composed with f"), is a function from $A$ to $C$ defined by $\mathbf{(g \circ f)(x) = g(f(x))}$ for all $x \in A$. Function composition is associative but generally not commutative. A crucial concept linked to function types is Invertible Functions. A function $f: A \to B$ is said to be invertible if there exists another function $g: B \to A$ such that $g \circ f$ is the identity function on $A$ ($I_A$, where $I_A(x)=x$) and $f \circ g$ is the identity function on $B$ ($I_B$, where $I_B(y)=y$). The fundamental theorem states that a function $f$ is invertible if and only if it is bijective. If $f$ is invertible, its unique inverse function is denoted by $\mathbf{f^{-1}}$, and we practice methods for finding this inverse.

Finally, the chapter often introduces Binary Operations. A binary operation $*$ on a set $A$ is simply a function that takes two elements from $A$ and combines them to produce another element in $A$ (i.e., $*: A \times A \to A$). We investigate properties like commutativity ($a * b = b * a$), associativity ($(a * b) * c = a * (b * c)$), the existence of an identity element $e$ ($a * e = e * a = a$), and the existence of an inverse element $b$ for each element $a$ ($a * b = b * a = e$).



Relations on a Set

In mathematics, a relation is a powerful concept used to describe a connection or relationship between elements. These can be elements within a single set or between two different sets. To formally define a relation, we must first understand the foundation on which it is built: the Cartesian Product.


Cartesian Product of Sets

The Cartesian Product is a way of creating a new set from two existing sets by forming all possible ordered pairs. It acts as a universe of all potential pairings between the elements of the sets.

Definition

Given two non-empty sets, $A$ and $B$, their Cartesian product, denoted as $A \times B$ (read as "A cross B"), is the set of all ordered pairs $(a, b)$ where the first element, $a$, is from set $A$ and the second element, $b$, is from set $B$.

$A \times B = \{ (a, b) : a \in A \text{ and } b \in B \}$

[Definition of Cartesian Product]

The term "ordered pair" is crucial because the order matters. The pair $(a, b)$ is generally not the same as the pair $(b, a)$.

Example 1. Let $A = \{1, 2\}$ and $B = \{p, q, r\}$. Find $A \times B$ and $B \times A$.

Answer:

To find $A \times B$, we pair each element of $A$ with every element of $B$:

$A \times B = \{ (1, p), (1, q), (1, r), (2, p), (2, q), (2, r) \}$.

To find $B \times A$, we pair each element of $B$ with every element of $A$:

$B \times A = \{ (p, 1), (p, 2), (q, 1), (q, 2), (r, 1), (r, 2) \}$.

Notice that $A \times B \neq B \times A$.

A 2D coordinate grid showing points for the Cartesian product of A={1,2} and B={p,q,r}. The x-axis represents set A and the y-axis represents set B. There are 6 points representing the 6 ordered pairs.

Cardinality of Cartesian Product

If set $A$ has $m$ elements (denoted $|A| = m$) and set $B$ has $n$ elements (denoted $|B| = n$), then the number of pairs in their Cartesian product $A \times B$ is the product of their sizes.

$|A \times B| = |A| \times |B| = m \times n$

[Number of elements in $A \times B$]

In the example above, $|A|=2$ and $|B|=3$, so $|A \times B| = 2 \times 3 = 6$.


Definition of a Relation

A relation is a way to specify which of the possible pairings from a Cartesian product are meaningful according to a certain rule or condition. Think of the Cartesian product as a menu of all possible connections, and a relation as your specific order from that menu.

Formal Definition

A relation $R$ from a non-empty set $A$ to a non-empty set $B$ is formally defined as a subset of the Cartesian product $A \times B$.

$R \subseteq A \times B$

[Definition of a Relation]

If an ordered pair $(a, b)$ is in the set $R$, we say "$a$ is related to $b$ by $R$" and write $aRb$.

Most often in this topic, we discuss a relation on a single set $A$, which is a relation from $A$ to itself. In this case, $R \subseteq A \times A$.

Domain, Range, and Codomain

For any relation $R$ from a set $A$ to a set $B$:

An arrow diagram showing a relation from set A={1,2,3} to set B={p,q,r,s}. Arrows connect 1 to p, 1 to q, and 2 to r. The Domain is {1,2}, the Range is {p,q,r}, and the Codomain is {p,q,r,s}.

Total Number of Possible Relations

Since a relation is any subset of $A \times B$, we can count the total number of possible relations. A set with $N$ elements has $2^N$ subsets.

If $|A| = m$ and $|B| = n$, then $|A \times B| = mn$.

Therefore, the total number of possible relations from $A$ to $B$ is $2^{mn}$.

For a relation on a single set $A$ with $|A|=m$, the total number of relations is $2^{m^2}$.


Types of Relations on a Set $A$

When a relation is defined from a set A to itself (i.e., $R \subseteq A \times A$), we can classify it based on specific structural properties or "rules of behavior" it might possess. Understanding these properties—reflexivity, symmetry, and transitivity—is fundamental to advanced topics in mathematics, including order theory, graph theory, and abstract algebra.


Trivial Relations

There are two "extreme" relations that can be defined on any non-empty set A. They represent the minimum and maximum possible relations.

1. Empty Relation (or Void Relation)

This is the relation where no element is related to any element (including itself). The relation set contains no ordered pairs. It is the smallest possible relation.

$R = \emptyset$

[Empty Relation]

Example: Let $A = \{1, 2, 3\}$. The relation $R$ on $A$ defined by $aRb$ if $a+b=10$ is an empty relation, as no two elements in A sum to 10.

2. Universal Relation

This is the relation where every element is related to every other element. The relation set contains all possible pairs from the Cartesian product $A \times A$. It is the largest possible relation.

$R = A \times A$

[Universal Relation]

Example: Let $A = \{1, 2\}$. The universal relation is $R = \{(1,1), (1,2), (2,1), (2,2)\}$.


Key Relational Properties

3. Identity Relation

The identity relation, denoted by $I_A$, is a very specific relation where every element is related only to itself. No other relationships are allowed.

$I_A = \{ (a, a) : a \in A \}$

[Definition of Identity Relation]

For any given set A, there is only one unique identity relation.

Example: If $A=\{1,2,3\}$, then the identity relation on A is $I_A = \{(1,1), (2,2), (3,3)\}$. The relation $\{(1,1), (2,2)\}$ is not the identity relation on A because the pair $(3,3)$ is missing. The relation $\{(1,1), (2,2), (3,3), (1,2)\}$ is not the identity relation because it contains an extra pair, $(1,2)$, which is not a self-relation.

4. Reflexive Relation

The core idea of a reflexive relation is that every element "is related to itself". It's a mirror property for every single element in the set.

Condition: For every element $a$ in set $A$, the ordered pair $(a, a)$ must be an element of the relation $R$.

For all $a \in A, (a, a) \in R$

[Condition for Reflexivity]

A reflexive relation can contain other pairs like $(a, b)$ where $a \neq b$. This makes it a less strict condition than the identity relation.

Reflexive vs. Identity: Every identity relation is reflexive, but not every reflexive relation is an identity relation. An identity relation contains *only* self-related pairs, whereas a reflexive relation must contain *at least* all self-related pairs.

A directed graph with three nodes labeled a, b, and c. Each node has a loop arrow starting and ending at itself, representing the pairs (a,a), (b,b), and (c,c). There is also an arrow from a to b.

Example 2. Let $A = \{1, 2, 3\}$. Check if the following relations are reflexive:

(i) $R_1 = \{ (1,1), (2,2), (3,3), (1,2) \}$

(ii) $R_2 = \{ (1,1), (3,3), (2,1), (1,3) \}$

Answer:

The set is $A = \{1, 2, 3\}$. For any relation on A to be reflexive, it must contain the pairs $(1,1)$, $(2,2)$, and $(3,3)$.

(i) $R_1$: The relation $R_1$ contains $(1,1)$, $(2,2)$, and $(3,3)$. The presence of the extra pair $(1,2)$ does not violate the condition. Therefore, $R_1$ is reflexive.

(ii) $R_2$: The relation $R_2$ contains $(1,1)$ and $(3,3)$, but the pair $(2,2)$ is missing. Since the condition "for every element $a \in A$" is not met, $R_2$ is not reflexive.

5. Symmetric Relation

The core idea of a symmetric relation is that the relationship is a "two-way street". If an element $a$ is related to an element $b$, then $b$ must also be related to $a$ in the same way.

Condition: If an ordered pair $(a, b)$ is in the relation $R$, then its reverse pair $(b, a)$ must also be in $R$.

If $(a, b) \in R$, then $(b, a) \in R$ for all $a,b \in A$

[Condition for Symmetry]

Note that pairs of the form $(a, a)$ do not violate this condition, because if $(a, a) \in R$, its reverse is also $(a, a)$, which is already in R.

A directed graph showing two nodes, a and b. There is an arrow from a to b, and another arrow from b to a, forming a two-way connection. A third node, c, has a self-loop.

Example 3. Let $A = \{1, 2, 3\}$. Is the relation $R = \{ (1,2), (2,1), (1,3) \}$ symmetric?

Answer:

We check each pair in $R$ where the elements are not the same.

  • The pair $(1,2)$ is in $R$. Its reverse, $(2,1)$, is also in $R$. This pair satisfies the condition.
  • The pair $(1,3)$ is in $R$. We must check if its reverse, $(3,1)$, is also in $R$. It is not in $R$.

Since we found a pair $(1,3)$ whose reverse $(3,1)$ is missing, the condition for symmetry fails.

Therefore, $R$ is not symmetric.

6. Transitive Relation

The core idea of a transitive relation is that relationships can form a "chain". If there is a path from $a$ to $b$, and another path from $b$ to $c$, then there must be a direct "shortcut" path from $a$ to $c$.

Condition: If a pair $(a, b)$ is in $R$ and another pair $(b, c)$ is in $R$, then the "bridging" pair $(a, c)$ must also be in $R$.

If $(a, b) \in R$ and $(b, c) \in R$, then $(a, c) \in R$

[Condition for Transitivity]

Important Note: If you cannot find any "chains" of the form $(a, b)$ and $(b, c)$ in the relation, the condition is never violated, and the relation is considered transitive by default (this is called being vacuously true). For example, $R = \{(1,2), (3,4)\}$ is transitive.

A directed graph showing three nodes, a, b, and c. There is an arrow from a to b, and an arrow from b to c. The required transitive link, a dashed arrow, is shown directly from a to c.

Example 4. Let $A = \{1, 2, 3\}$. Is the relation $R = \{ (1,2), (2,3), (1,3), (2,1) \}$ transitive?

Answer:

We must search for all chains of the form $(a,b)$ and $(b,c)$ and check if the shortcut $(a,c)$ exists.

  • Chain 1: We see $(1, \mathbf{2}) \in R$ and $(\mathbf{2}, 3) \in R$. We must check for $(1,3)$. Yes, $(1,3)$ is in $R$. This chain is fine.
  • Chain 2: We see $(\mathbf{2}, 1) \in R$ and $(1, \mathbf{2}) \in R$. We must check for $(2,2)$. The pair $(2,2)$ is not in $R$.

Since we found a chain that is missing its transitive link, the condition fails.

Therefore, $R$ is not transitive.

Equivalence Relation

An equivalence relation is a special and very important type of relation that is used to group elements of a set that are "alike" or "equivalent" in some specific way. A relation $R$ on a set $A$ is an equivalence relation if and only if it satisfies all three of the key properties: it must be Reflexive, Symmetric, and Transitive (RST).

  1. Reflexive: Every element is equivalent to itself.

    For all $a \in A, (a, a) \in R$.

  2. Symmetric: If $a$ is equivalent to $b$, then $b$ must be equivalent to $a$.

    If $(a, b) \in R$, then $(b, a) \in R$.

  3. Transitive: If $a$ is equivalent to $b$ and $b$ is equivalent to $c$, then $a$ must be equivalent to $c$.

    If $(a, b) \in R$ and $(b, c) \in R$, then $(a, c) \in R$.

Common examples include the "is equal to" (=) relation on numbers, the "is congruent to" relation on geometric shapes, and the "has the same birthday as" relation on a set of people.

Example 5. Let $T$ be the set of all triangles in a plane. Let $R$ be the relation in $T$ given by $R = \{ (T_1, T_2) : T_1 \text{ is congruent to } T_2 \}$. Show that $R$ is an equivalence relation.

Answer:

We check the three properties for the relation "is congruent to" ($\cong$).

(i) Reflexivity:

For any triangle $T_1 \in T$, we know that every triangle is congruent to itself. So, $T_1 \cong T_1$.

This means $(T_1, T_1) \in R$ for all $T_1 \in T$. The relation is reflexive.

(ii) Symmetry:

Assume $(T_1, T_2) \in R$. This means $T_1 \cong T_2$. From the properties of congruence, if triangle $T_1$ is congruent to triangle $T_2$, then $T_2$ is also congruent to $T_1$. So, $T_2 \cong T_1$.

This means $(T_2, T_1) \in R$. The relation is symmetric.

(iii) Transitivity:

Assume $(T_1, T_2) \in R$ and $(T_2, T_3) \in R$. This means $T_1 \cong T_2$ and $T_2 \cong T_3$. From the properties of congruence, if $T_1$ is congruent to $T_2$ and $T_2$ is congruent to $T_3$, then $T_1$ is congruent to $T_3$. So, $T_1 \cong T_3$.

This means $(T_1, T_3) \in R$. The relation is transitive.

Since $R$ is reflexive, symmetric, and transitive, it is an equivalence relation.


Equivalence Classes and Partitions

The most important consequence of an equivalence relation on a set is that it naturally partitions the set. A partition of a set is a way of splitting it into a collection of smaller, non-overlapping subsets such that every element of the original set belongs to exactly one of these subsets.

A diagram showing a large set A partitioned into four non-overlapping subsets labeled P1, P2, P3, and P4. Every element in A belongs to exactly one subset.

Equivalence Classes

Each of the subsets in the partition created by an equivalence relation is called an equivalence class. The equivalence class of an element $a$, denoted by $[a]$, is the set of all elements in the original set $A$ that are related to $a$ under the relation $R$.

$[a] = \{ x \in A : (x, a) \in R \}$

[Definition of Equivalence Class]

In simple terms, an equivalence class is a "club" or "group" of all elements that are considered equivalent to each other under the rules of the relation.

Properties of Equivalence Classes

  1. For any $a \in A$, $a$ is in its own equivalence class, so $[a]$ is never empty.
  2. Any two equivalence classes are either identical or completely disjoint (they have no elements in common). $[a] = [b]$ or $[a] \cap [b] = \emptyset$.
  3. The union of all distinct equivalence classes is the original set $A$.

Example 6. For the equivalence relation $R$ on the set of integers $Z$ where $aRb$ if $a-b$ is even, find the distinct equivalence classes.

Answer:

The relation $aRb$ means that $a$ and $b$ have the same parity (both are even or both are odd). This relation will partition the set of all integers $Z$ based on their parity.

Step 1: Find the equivalence class of an even number, like 0.

The equivalence class of 0, denoted $[0]$, is the set of all integers $b$ that are related to 0.

$[0] = \{b \in Z : (b, 0) \in R\} = \{b \in Z : b - 0 \text{ is even}\} = \{b \in Z : b \text{ is even}\}$

So, $[0]$ is the set of all even integers: $\{ \dots, -4, -2, 0, 2, 4, \dots \}$.

Step 2: Find the equivalence class of an odd number, like 1.

The equivalence class of 1, denoted $[1]$, is the set of all integers $b$ that are related to 1.

$[1] = \{b \in Z : (b, 1) \in R\} = \{b \in Z : b - 1 \text{ is even}\}$

If $b-1$ is an even number, then $b$ itself must be an odd number.

So, $[1]$ is the set of all odd integers: $\{ \dots, -3, -1, 1, 3, 5, \dots \}$.

Step 3: Conclusion.

If we pick any other integer (e.g., 4), its equivalence class $[4]$ will be the set of all even integers, which is the same as $[0]$. If we pick another odd integer (e.g., -5), its class $[-5]$ will be the set of all odd integers, which is the same as $[1]$.

Thus, there are only two distinct equivalence classes. These classes form a partition of the set of integers $Z$:

A diagram showing the set of Integers Z partitioned into two distinct, non-overlapping groups: the set of Even Integers [0] and the set of Odd Integers [1].

  • Disjoint: The sets are disjoint as no integer is both even and odd: $[0] \cap [1] = \emptyset$.
  • Exhaustive: Their union covers all integers: $[0] \cup [1] = Z$.



Functions

A function is one of the most fundamental concepts in mathematics. It acts like a rule or a machine that takes an input and produces a single, predictable output. It is a special, more structured type of relation where every input is associated with exactly one output.


Definition of a Function

A function $f$ from a non-empty set $A$ to a non-empty set $B$ is a specific type of relation where every element in set $A$ is mapped to exactly one element in set $B$.

We denote a function $f$ from set $A$ to set $B$ as $f: A \to B$. This is read as "$f$ is a function from $A$ to $B$".

The Two Rules of a Function

For a relation $f \subseteq A \times B$ to be a function, it must obey two strict rules:

  1. Every element in the domain must be used. Every element in set $A$ must have an output in set $B$. No input can be left behind. (Formally, the domain of the relation must be the entire set $A$).
  2. Each element in the domain must have only one output. An element in set $A$ cannot be mapped to two or more different elements in set $B$. (Formally, if $(a, b_1) \in f$ and $(a, b_2) \in f$, then it must be that $b_1 = b_2$).

In simple terms, every input has exactly one output.

Two mapping diagrams. The first shows a valid function where every element in A has one arrow leaving it. The second shows an invalid function where one element in A has two arrows leaving it, and another element has no arrows.

Key Terminology

If $(a, b)$ is a pair in the function $f$, we write it in the familiar notation $f(a) = b$.

For a function $f: A \to B$:

Range$(f) = \{ f(a) : a \in A \}$

[The set of all images]

An arrow diagram showing a function from set A={1,2,3} to set B={p,q,r,s}. The Domain is {1,2,3}, the Codomain is {p,q,r,s}, and the Range is {p,q,r} because s is not mapped to.

Types of Functions

Functions can be classified into different types based on how they map elements from the domain to the codomain. The properties of a function, such as whether it is one-to-one or onto, are critically dependent on the specified domain and codomain. Let's consider a function $f: A \to B$.


1. One-to-One Function (Injective)

A function is one-to-one (or injective) if every distinct element in the domain maps to a distinct element in the codomain. In simple terms, different inputs always produce different outputs. No two different inputs can share the same output.

An arrow diagram of a one-to-one function. Each of the three elements in the domain A maps to a unique element in the codomain B. A fourth element in B is not mapped to, which is allowed.

Formal Definition 1:

For all $x_1, x_2 \in A$, if $x_1 \neq x_2$, then $f(x_1) \neq f(x_2)$

Formal Definition 2 (more useful for proofs):

For all $x_1, x_2 \in A$, if $f(x_1) = f(x_2)$, then $x_1 = x_2$

Many-to-One Function

A function that is not one-to-one is called a many-to-one function. This means there exist at least two distinct elements in the domain that map to the same element in the codomain.

An arrow diagram of a many-to-one function. Two different elements in the domain A point to the same element in the codomain B.

The Horizontal Line Test (for graphical functions)

A function is one-to-one if and only if no horizontal line intersects its graph more than once. If you can draw a horizontal line that cuts the graph in two or more places, the function is many-to-one.

Example 1. Show that the function $f: R \to R$ defined by $f(x) = 2x+3$ is one-to-one.

Answer:

We will use the second formal definition. Let $x_1, x_2$ be two elements in the domain $R$.

Assume their outputs are equal: $f(x_1) = f(x_2)$.

$2x_1 + 3 = 2x_2 + 3$

[By definition of $f$]

$2x_1 = 2x_2$

[Subtracting 3]

$x_1 = x_2$

[Dividing by 2]

Since assuming $f(x_1) = f(x_2)$ leads to the conclusion that $x_1 = x_2$, the function is one-to-one.


2. Onto Function (Surjective)

A function is onto (or surjective) if every element in the codomain has at least one corresponding input in the domain. In other words, every element in the codomain is "hit" or mapped to. There are no elements left over in the codomain that are not an output of the function.

This is equivalent to saying the Range is equal to the Codomain.

An arrow diagram of an onto function. Every element in the codomain B has at least one arrow pointing to it from an element in A. One element in B is the target of two arrows, which is allowed for onto functions.

Formal Definition:

For every $y \in B$, there exists at least one $x \in A$ such that $f(x) = y$

Into Function

A function that is not onto is called an into function. In an into function, the range is a proper subset of the codomain. This means there is at least one element in the codomain that is not the image of any element in the domain.

An arrow diagram of an into function. There is an element in the codomain B which has no arrow pointing to it from any element in the domain A.

Example 2. Show that the function $f: R \to R$ defined by $f(x) = 2x+3$ is onto.

Answer:

We must show that for any arbitrary element $y$ in the codomain $R$, we can find a corresponding element $x$ in the domain $R$ such that $f(x)=y$.

Let's set $f(x)=y$ and solve for $x$ in terms of $y$.

$y = 2x + 3$

$y - 3 = 2x$

$x = \frac{y-3}{2}$

This shows that for any real number $y$ we pick from the codomain, we can find a value for $x$. Since $y$ is a real number, $y-3$ is real, and $\frac{y-3}{2}$ is also a real number. So this value of $x$ is guaranteed to exist in the domain $R$.

Since for any $y \in R$ we found a pre-image $x \in R$, the function is onto.


3. One-to-One and Onto Function (Bijective)

A function is bijective if it is both one-to-one AND onto. A bijection creates a perfect pairing between the elements of two sets. Every input has a unique output, and every possible output is mapped to by exactly one input.

An arrow diagram of a bijective function. There is a perfect one-to-one correspondence between the elements of set A and set B. Every element in A maps to a unique element in B, and every element in B is mapped to.

For finite sets, a bijection can only exist if the domain and codomain have the same number of elements ($|A| = |B|$).

Example 3. Is the function $f: R \to R$ defined by $f(x) = 2x+3$ bijective?

Answer:

From Example 1, we proved the function is one-to-one.

From Example 2, we proved the function is onto.

Since the function is both one-to-one and onto, it is a bijective function.


Example 4. Examine if the function $f: R \to R$ defined by $f(x) = x^2$ is one-to-one, onto, or bijective.

Answer:

The function is $f(x) = x^2$ with domain $R$ and codomain $R$.

Graph of the function f(x) = x^2, a parabola opening upwards with its vertex at the origin. A horizontal line at y=4 is shown intersecting the graph at x=-2 and x=2.

Check for One-to-One:

Let's test two different inputs. Consider $x_1 = 2$ and $x_2 = -2$.

$f(2) = 2^2 = 4$

$f(-2) = (-2)^2 = 4$

We have different inputs ($2 \neq -2$) but they produce the same output (4). Therefore, the function is not one-to-one. It is a many-to-one function.

Check for Onto:

The codomain is all real numbers, $R$. We need to check if the range equals the codomain.

The function is $f(x) = x^2$. The square of any real number is always non-negative ($x^2 \geq 0$).

This means the range of the function is the set of non-negative real numbers, $[0, \infty)$.

The range $[0, \infty)$ is not equal to the codomain $R$. For instance, the number $-1$ is in the codomain but there is no real number $x$ such that $x^2 = -1$. Therefore, the function is not onto. It is an into function.

Check for Bijective:

Since the function is neither one-to-one nor onto, it is not bijective.

Note on Domain and Codomain

The properties of a function heavily depend on its specified domain and codomain. For instance, if we define a new function $g: [0, \infty) \to [0, \infty)$ by $g(x) = x^2$, this new function is bijective.


Other Specific Types of Functions

Identity Function

An identity function, denoted $I_A$, is a function from a set A to itself that maps every element to itself. The rule is $f(x) = x$. The domain and codomain must be the same set. An identity function is always bijective.

Example: The function $f: R \to R$ defined by $f(x) = x$ is the identity function on the real numbers.

Constant Function

A constant function is a function where every element of the domain maps to the exact same, single element in the codomain. The rule is $f(x) = c$, where $c$ is a constant.

Example: The function $f: R \to R$ defined by $f(x) = 5$ is a constant function. Its range is just the set $\{5\}$.

Zero Function

The zero function is a specific type of constant function where the constant is 0. The rule is $f(x) = 0$.

Equal Functions

Two functions, $f$ and $g$, are said to be equal if and only if they satisfy two conditions:

  1. They have the exact same domain.
  2. For every element $x$ in their common domain, their rules produce the same output, i.e., $f(x) = g(x)$.

Monotonic Functions

These functions describe a consistent trend in their values.

A function that is either increasing or decreasing is called monotonic. A function that is strictly increasing or strictly decreasing is called strictly monotonic.

Even and Odd Functions

These classifications are based on the function's symmetry with respect to the y-axis and the origin.

Even Function: A function $f$ is even if its graph is symmetric with respect to the y-axis.
Condition: $f(-x) = f(x)$ for all $x$ in the domain.
Example: $f(x) = x^2$ is even because $f(-x) = (-x)^2 = x^2 = f(x)$. Also, $f(x) = \cos(x)$ is even.

Odd Function: A function $f$ is odd if its graph is symmetric with respect to the origin.
Condition: $f(-x) = -f(x)$ for all $x$ in the domain.
Example: $f(x) = x^3$ is odd because $f(-x) = (-x)^3 = -x^3 = -f(x)$. Also, $f(x) = \sin(x)$ is odd.

A function can be even, odd, or neither. For example, $f(x) = x+1$ is neither even nor odd.



Composition of Functions

Just as we combine numbers using operations like addition and multiplication to create new numbers, we can combine functions to create new, more complex functions. The most important method for combining functions is function composition. This powerful concept allows us to build a "chain reaction" or a "pipeline" where the output of one function becomes the input for the next function.


Definition of Composition of Functions

Let's say we have two functions, $f$ and $g$. The composition of $g$ with $f$, written as $g \circ f$, represents the function that results from first applying function $f$ to an input $x$, and then applying function $g$ to the output of $f$. It is read as "$g$ composed with $f$", "$g$ of $f$", or "$g$ after $f$".

Condition for Composition

For the composition $g \circ f$ to be defined, there's a crucial compatibility condition: the output of the first function ($f$) must be a valid input for the second function ($g$). This means that every value in the range of $f$ must be included in the domain of $g$.

Formally, the range of $f$ must be a subset of the domain of $g$.

Composition $g \circ f$ is defined if Range($f$) $\subseteq$ Domain($g$)

The Composition Rule

If the condition is met, the composite function $(g \circ f)(x)$ is defined by the following rule:

$(g \circ f)(x) = g(f(x))$

This formula is the core of function composition. It instructs us to evaluate the expression from the inside out:

  1. Take an input $x$.
  2. Calculate the output of the inner function, $f(x)$.
  3. Use this entire result, $f(x)$, as the input for the outer function, $g$.

Domain and Codomain of a Composite Function

If $f: A \to B$ and $g: B \to C$, the composite function $g \circ f$ acts as a direct shortcut, taking an input from the domain of $f$ (set A) and producing an output in the codomain of $g$ (set C).

$g \circ f: A \to C$

A diagram showing three sets A, B, and C. An arrow labeled 'f' goes from A to B, mapping x to f(x). An arrow labeled 'g' goes from B to C, mapping f(x) to g(f(x)). A larger, dashed arrow labeled 'g o f' goes directly from A to C.

Order Matters!

It is very important to remember that function composition is not commutative. In general, the order in which you compose functions drastically changes the result. The function $g \circ f$ ("g after f") is different from the function $f \circ g$ ("f after g").

$g \circ f \neq f \circ g$


Composition of Real Functions and Their Domains

When dealing with real functions (functions whose inputs and outputs are subsets of the real numbers), the composition involves substituting one function's formula into the other. While finding the formula for a composite function is often straightforward, the main challenge is correctly determining its domain.

The domain of a composite function $(g \circ f)(x)$ is not simply the intersection of the domains of $f$ and $g$. It's a more careful, two-step process. Think of it like a two-stage security check: an input $x$ is only "valid" for the composite function if it can successfully pass through both stages.

A flow diagram showing the process for finding the domain of g(f(x)). An input x first enters the domain of f. The output f(x) must then be within the domain of g. Only the initial x-values that satisfy both conditions are in the domain of the composite function.

The domain of $(g \circ f)(x)$ is the set of all $x$ values that satisfy two conditions simultaneously:

  1. Stage 1 (Inner Function): The input $x$ must be in the domain of the inner function, $f$.
  2. Stage 2 (Outer Function): The output of the inner function, $f(x)$, must be a valid input for the outer function, $g$. That is, $f(x)$ must be in the domain of $g$.

Example 1. Let $f(x) = \sqrt{x}$ and $g(x) = \frac{1}{x-4}$. Find the function $(g \circ f)(x)$ and its domain.

Answer:

Step 1: Find the domains of the individual functions.

Domain of $f(x) = \sqrt{x}$: The expression under a square root must be non-negative.
$D_f = \{x \in R : x \ge 0\} = [0, \infty)$.

Domain of $g(x) = \frac{1}{x-4}$: The denominator of a fraction cannot be zero.
$x-4 \neq 0 \implies x \neq 4$.
$D_g = \{x \in R : x \neq 4\}$.

Step 2: Find the formula for the composite function.

$(g \circ f)(x) = g(f(x)) = g(\sqrt{x})$

Substitute $\sqrt{x}$ into the variable for $g(x)$:

$(g \circ f)(x) = \frac{1}{\sqrt{x}-4}$

Step 3: Determine the domain of the composite function using the two-stage check.

An input $x$ is valid if it passes both checks:

Check 1: $x$ must be in the domain of $f$.
This means $x \ge 0$.

Check 2: The output of $f$, which is $f(x)=\sqrt{x}$, must be in the domain of $g$. The domain of $g$ excludes the number 4. So, we must ensure the output of $f$ is never 4.

$f(x) \neq 4 \implies \sqrt{x} \neq 4$
Squaring both sides gives $x \neq 16$.

Final Domain: We must satisfy both conditions simultaneously. We need all real numbers $x$ such that $x \ge 0$ AND $x \neq 16$.

In interval notation, the domain of $g \circ f$ is $[0, 16) \cup (16, \infty)$.


Example 2. Let $f(x) = \frac{1}{x+2}$ and $g(x) = \frac{4}{x-1}$. Find the function $(g \circ f)(x)$ and its domain.

Answer:

Step 1: Find the domains of the individual functions.

Domain of $f(x)$: $x+2 \neq 0 \implies x \neq -2$. So, $D_f = \{x \in R : x \neq -2\}$.

Domain of $g(x)$: $x-1 \neq 0 \implies x \neq 1$. So, $D_g = \{x \in R : x \neq 1\}$.

Step 2: Find the formula for the composite function.

$(g \circ f)(x) = g(f(x)) = g\left(\frac{1}{x+2}\right)$

Substitute $\frac{1}{x+2}$ into the variable for $g(x)$:

$(g \circ f)(x) = \frac{4}{\left(\frac{1}{x+2}\right)-1}$

To simplify, multiply the numerator and denominator by $(x+2)$:

$(g \circ f)(x) = \frac{4(x+2)}{1 - 1(x+2)} = \frac{4x+8}{1-x-2} = \frac{4x+8}{-x-1}$

Step 3: Determine the domain of the composite function using the two-stage check.

Check 1: $x$ must be in the domain of $f$.
This means $x \neq -2$.

Check 2: The output of $f$, which is $f(x)=\frac{1}{x+2}$, must be in the domain of $g$. The domain of $g$ excludes the number 1.

$f(x) \neq 1 \implies \frac{1}{x+2} \neq 1$
$1 \neq 1(x+2)$
$1 \neq x+2$
$x \neq -1$.

Final Domain: We need all real numbers $x$ such that $x \neq -2$ AND $x \neq -1$.

The domain of $g \circ f$ is $\{x \in R : x \neq -2 \text{ and } x \neq -1\}$.

Note: If we only looked at the final simplified formula, $\frac{4x+8}{-x-1}$, we might incorrectly think the only restriction is $x \neq -1$. This shows why the two-step process is crucial.


Properties of Composition of Functions

Function composition follows several important algebraic properties that are similar to properties of operations on numbers.

1. Associativity of Composition

The associative property means that when you compose three or more functions, the grouping of the operations doesn't matter. The order of application ($f$, then $g$, then $h$) is fixed, but you can compute the intermediate steps in different ways and get the same result.

For three functions $f: A \to B$, $g: B \to C$, and $h: C \to D$:

$h \circ (g \circ f) = (h \circ g) \circ f$

Proof: We show both sides give the same output for any input $x \in A$.

Left-Hand Side: Calculate $(g \circ f)$ first.

$(h \circ (g \circ f))(x) = h((g \circ f)(x)) = h(g(f(x)))$

Right-Hand Side: Calculate $(h \circ g)$ first.

$((h \circ g) \circ f)(x) = (h \circ g)(f(x)) = h(g(f(x)))$

Since both sides simplify to the same expression, the property is proven.

2. Composition with an Identity Function

The identity function is a special function that simply returns its input. For a set $A$, the identity function $I_A: A \to A$ is defined as $I_A(x) = x$. It's the functional equivalent of the number 1 in multiplication or 0 in addition.

Graph of the identity function y = x, which is a straight line at a 45-degree angle through the origin.

Composing any function $f$ with an appropriate identity function leaves $f$ unchanged.

If $f: A \to B$, then:

Proof for $f \circ I_A = f$:

For any $x \in A$, $(f \circ I_A)(x) = f(I_A(x)) = f(x)$. Since the outputs are the same for all inputs, the functions are identical.

3. Composition of Bijective Functions

An important theorem states that if you compose two bijective functions, the resulting composite function is also bijective.

If $f: A \to B$ is bijective and $g: B \to C$ is bijective, then their composition $g \circ f: A \to C$ is also bijective.

Proof Outline:

(i) Proving $g \circ f$ is One-to-One (Injective):

Assume $(g \circ f)(x_1) = (g \circ f)(x_2)$ for some $x_1, x_2 \in A$. This means $g(f(x_1)) = g(f(x_2))$. Since $g$ is injective, its inputs must be equal: $f(x_1) = f(x_2)$. And since $f$ is also injective, its inputs must be equal: $x_1 = x_2$. This proves $g \circ f$ is injective.

(ii) Proving $g \circ f$ is Onto (Surjective):

Take any element $z \in C$. Since $g$ is surjective, there exists a $y \in B$ such that $g(y) = z$. Since $f$ is surjective, there exists an $x \in A$ such that $f(x) = y$. Therefore, we can write $(g \circ f)(x) = g(f(x)) = g(y) = z$. We have found a pre-image $x$ for any element $z$, so $g \circ f$ is surjective.

Since $g \circ f$ is both injective and surjective, it is bijective.


Example 1. Let $f(x) = 2x+3$ and $g(x) = x^2$. Both are functions from $R \to R$. Find $g \circ f$ and $f \circ g$ and show they are not equal.

Answer:

Calculating $(g \circ f)(x)$:

The rule is $(g \circ f)(x) = g(f(x))$.

Step 1: Substitute the entire expression for $f(x)$ into the function $g$.

$(g \circ f)(x) = g(2x+3)$

Step 2: Apply the rule of $g$ (which is to square its input) to the new input $(2x+3)$.

$(g \circ f)(x) = (2x+3)^2 = 4x^2 + 12x + 9$

So, $(g \circ f)(x) = 4x^2 + 12x + 9$.

Calculating $(f \circ g)(x)$:

The rule is $(f \circ g)(x) = f(g(x))$.

Step 1: Substitute the entire expression for $g(x)$ into the function $f$.

$(f \circ g)(x) = f(x^2)$

Step 2: Apply the rule of $f$ (multiply by 2, then add 3) to the new input $(x^2)$.

$(f \circ g)(x) = 2(x^2) + 3 = 2x^2 + 3$

So, $(f \circ g)(x) = 2x^2 + 3$.

Comparison:

We see that $4x^2 + 12x + 9 \neq 2x^2 + 3$. For example, if we test $x=1$:

$(g \circ f)(1) = 4(1)^2 + 12(1) + 9 = 25$

$(f \circ g)(1) = 2(1)^2 + 3 = 5$

Since the results are different, we have shown that $g \circ f \neq f \circ g$.


Example 2. Let $f(x) = |x|$ (absolute value) and $g(x) = x - 2$. Find $(f \circ g)(x)$ and $(g \circ f)(x)$.

Answer:

Calculating $(f \circ g)(x)$:

$(f \circ g)(x) = f(g(x)) = f(x - 2)$

Now we apply the rule of $f$ (take the absolute value of the input) to $(x-2)$.

$(f \circ g)(x) = |x - 2|$

Calculating $(g \circ f)(x)$:

$(g \circ f)(x) = g(f(x)) = g(|x|)$

Now we apply the rule of $g$ (subtract 2 from the input) to $|x|$.

$(g \circ f)(x) = |x| - 2$

Again, these are different functions. For example, $(f \circ g)(-3) = \ $$ |-3-2| = \ $$ |-5|=5$, while $(g \circ f)(-3) = |-3| - 2 = \ $$ 3 - 2 = 1$.



Invertible Functions

An invertible function is a function for which we can define a "reverse" or "undo" operation. This reverse operation is itself a function, called the inverse function. If a function $f$ takes an input $x$ from set A to an output $y$ in set B, its inverse function, denoted $f^{-1}$, takes that output $y$ and returns the original input $x$. This concept is fundamental for solving equations and understanding many mathematical structures.


Definition of an Invertible Function

A function $f: A \to B$ is called invertible if there exists another function, $g: B \to A$, that perfectly reverses its effect.

Specifically, $f$ is invertible if we can find a function $g$ such that composing the two functions in either order results in the identity function (the "do nothing" function).

  1. Applying $f$ and then $g$ gets you back to the start in set A.

    This means the composition $g \circ f$ must be the identity function on set A ($I_A$).

    $(g \circ f)(x) = g(f(x)) = x$ for all $x \in A$.

  2. Applying $g$ and then $f$ gets you back to the start in set B.

    This means the composition $f \circ g$ must be the identity function on set B ($I_B$).

    $(f \circ g)(y) = f(g(y)) = y$ for all $y \in B$.

$f$ is invertible if $\exists g: B \to A$ such that $g \circ f = I_A$ and $f \circ g = I_B$

If such a function $g$ exists, it is called the inverse of $f$ and is uniquely denoted by $f^{-1}$.

Important Note: The notation $f^{-1}$ is a special symbol for the inverse function and does not mean the reciprocal $\frac{1}{f(x)}$.

An arrow diagram showing a function f mapping x from set A to y in set B. A second arrow labeled f inverse maps y from set B back to x in set A, illustrating the undoing process.

The Condition for Invertibility: Bijectivity

Not all functions have an inverse. For a function to be invertible, it must create a perfect, unambiguous pairing between the elements of its domain and codomain. This leads to a crucial theorem:

A function $f: A \to B$ is invertible if and only if it is bijective (both one-to-one and onto).

Why Bijectivity is Necessary

Therefore, a function must be both one-to-one and onto (bijective) to guarantee that its inverse is a well-defined function.


Proof of the Condition

The proof shows that the concepts of invertibility and bijectivity are logically equivalent.

Part 1: If a function is invertible, it must be bijective.

Part 2: If a function is bijective, it must be invertible.


How to Find the Inverse of a Function Algebraically

If a function is defined by a formula and is known to be bijective, you can find the formula for its inverse by following these steps.

  1. Replace $f(x)$ with $y$: Start with the function's equation, $y = f(x)$.
  2. Swap the variables $x$ and $y$: This is the crucial step that represents the "reversal" of inputs and outputs. The equation becomes $x = f(y)$.
  3. Solve for the new $y$: Use algebraic manipulation to isolate $y$ in the new equation.
  4. Replace $y$ with $f^{-1}(x)$: The resulting expression for $y$ is the formula for the inverse function.

The domain of $f^{-1}$ is the range of $f$, and the range of $f^{-1}$ is the domain of $f$.


Example 1. Find the inverse of the function $f: R \to R$ defined by $f(x) = 2x+3$.

Answer:

First, we note that this function is a straight line with a non-zero slope, so it is bijective and therefore invertible.

Step 1: Write $y = f(x)$.

$y = 2x + 3$

Step 2: Swap the variables $x$ and $y$.

$x = 2y + 3$

Step 3: Solve the new equation for $y$.

$x - 3 = 2y$

$\frac{x-3}{2} = y$

Step 4: Replace $y$ with $f^{-1}(x)$.

$f^{-1}(x) = \frac{x-3}{2}$

Thus, the inverse function of $f(x) = 2x+3$ is $f^{-1}(x) = \frac{x-3}{2}$.


Example 2. Let $f: [0, \infty) \to [1, \infty)$ be a function defined by $f(x) = x^2 + 1$. Find the inverse of $f$.

Answer:

By restricting the domain to $[0, \infty)$, the function $f(x) = x^2 + 1$ is one-to-one. With the codomain restricted to its range $[1, \infty)$, it is also onto. Thus, the function is bijective and invertible.

Step 1: Write $y = f(x)$.

$y = x^2 + 1$

Step 2: Swap $x$ and $y$.

$x = y^2 + 1$

Step 3: Solve for $y$.

$x - 1 = y^2$

$y = \pm\sqrt{x-1}$

We have two possible answers. We must choose the correct one based on the range of the inverse function. The range of $f^{-1}$ must be the domain of $f$, which is $[0, \infty)$. This means the output of our inverse function must be non-negative. Therefore, we must choose the positive square root.

$y = \sqrt{x-1}$

Step 4: Replace $y$ with $f^{-1}(x)$.

$f^{-1}(x) = \sqrt{x-1}$

The inverse function is $f^{-1}(x) = \sqrt{x-1}$. Its domain is the range of $f$, which is $[1, \infty)$.


Inverse of a Composite Function

There is a special rule for finding the inverse of a composite function, sometimes called the "socks and shoes rule". To undo a sequence of operations, you must undo them in the reverse order.

If $f$ and $g$ are two invertible functions, then their composition $g \circ f$ is also invertible, and its inverse is given by:

$(g \circ f)^{-1} = f^{-1} \circ g^{-1}$

Notice that the order of the inverse functions is reversed. To undo "apply $f$, then apply $g$", you must first undo $g$ (with $g^{-1}$), and then undo $f$ (with $f^{-1}$).

Proof Outline:

To prove this, we must show that composing $(f^{-1} \circ g^{-1})$ with $(g \circ f)$ gives the identity function.

Consider $(f^{-1} \circ g^{-1}) \circ (g \circ f)$:

$= f^{-1} \circ (g^{-1} \circ g) \circ f$ (by associativity)

$= f^{-1} \circ I_B \circ f$ (since $g^{-1} \circ g$ is the identity)

$= f^{-1} \circ f$ (since composing with identity does nothing)

$= I_A$ (since $f^{-1} \circ f$ is the identity)

A similar check for $(g \circ f) \circ (f^{-1} \circ g^{-1})$ confirms the result.



Binary Operations

Operations like addition, subtraction, and multiplication are fundamental in mathematics. They are all examples of a general concept called a binary operation. A binary operation is a rule for combining two elements of a set to produce a third element, which must also belong to the same set.


Definition of a Binary Operation

A binary operation $*$ on a non-empty set $A$ is a function that takes any two elements from $A$, in a specific order, and maps them to a single element that is also in $A$.

Formally, $*$ is a function from the Cartesian product $A \times A$ to the set $A$.

$*: A \times A \to A$

This means for any pair $(a, b)$ where $a \in A$ and $b \in A$, the result of the operation, written as $a*b$, is a unique element that also belongs to set $A$.

Closure Property

The most important part of this definition is that the result $a*b$ must be an element of $A$. This is known as the closure property. If a set is "closed" under an operation, it means performing that operation will never take you outside of the set.

Example 1. Check if addition, subtraction, multiplication, and division are binary operations on the set of natural numbers, $N = \{1, 2, 3, \dots \}$.

Answer:

Operation ($*$) Is $a*b$ always in $N$? Example Conclusion
Addition (+) Yes. The sum of two positive integers is always a positive integer. $3+5=8 \in N$ Is a binary operation.
Subtraction (-) No. The difference can be zero or negative, which are not in $N$. $3-5=-2 \notin N$ Is NOT a binary operation.
Multiplication (×) Yes. The product of two positive integers is always a positive integer. $3 \times 5=15 \in N$ Is a binary operation.
Division (÷) No. The result is often not an integer. $3 \div 5 = 0.6 \notin N$ Is NOT a binary operation.

Properties of Binary Operations

Binary operations can have several important properties that define their behavior. Let $*$ be a binary operation on a set $A$.

1. Commutativity

An operation is commutative if the order in which you combine two elements does not change the result.

$a * b = b * a$ for all $a, b \in A$

For example, on the set of integers $Z$, addition is commutative ($3+5=5+3$) but subtraction is not ($3-5 \neq 5-3$).

Example 2. On the set of real numbers $R$, is the operation $a*b = a+b+ab$ commutative?

Answer:

We need to check if $a*b = b*a$.

$a*b = a+b+ab$

$b*a = b+a+ba$

Since addition and multiplication of real numbers are commutative, $b+a = a+b$ and $ba=ab$. Therefore, the expressions are the same.

Conclusion: The operation is commutative.

2. Associativity

An operation is associative if, when combining three or more elements, the grouping (or order of calculation) does not change the result.

$(a * b) * c = a * (b * c)$ for all $a, b, c \in A$

For example, on the set of real numbers $R$, multiplication is associative ($(2 \times 3) \times 4 = 2 \times (3 \times 4)$), but division is not ($(8 \div 4) \div 2 \neq 8 \div (4 \div 2)$).

A diagram showing three blocks labeled a, b, and c in a line. The first part shows combining a and b first, then c. The second part shows combining b and c first, then a. Both lead to the same result.

Example 3. On the set of real numbers $R$, is the operation $a*b = a+b+ab$ associative?

Answer:

We need to check if $(a*b)*c = a*(b*c)$.

Left side:

$(a*b)*c = (a+b+ab)*c$

$= (a+b+ab) + c + (a+b+ab)c$

$= a+b+ab+c+ac+bc+abc$

Right side:

$a*(b*c) = a*(b+c+bc)$

$= a + (b+c+bc) + a(b+c+bc)$

$= a+b+c+bc+ab+ac+abc$

Rearranging the terms shows both sides are equal to $a+b+c+ab+ac+bc+abc$.

Conclusion: The operation is associative.

3. Existence of an Identity Element

An identity element, usually denoted by $e$, is a special element in the set that, when combined with any other element, leaves it unchanged.

$a * e = a$ and $e * a = a$ for all $a \in A$

If an identity element exists, it is unique.

Example 4. Find the identity element for $a*b = a+b+ab$ on $R$.

Answer:

We are looking for an element $e$ such that $a*e = a$.

$a*e = a+e+ae = a$

$e+ae = 0$

$e(1+a) = 0$

For this to be true for all values of $a$, the factor $e$ must be zero.

Conclusion: The identity element is $e=0$.

4. Existence of Inverse Elements

If a binary operation has an identity element $e$, then an element $a$ is invertible if there exists another element $b$ (called the inverse of $a$) in the set, such that combining them gives the identity element.

$a * b = e$ and $b * a = e$

The inverse of $a$ is often denoted by $a^{-1}$.

Example 5. For the operation $a*b = a+b+ab$ on $R$ (with identity $e=0$), find the inverse of an element $a$.

Answer:

We need to find an element $b$ such that $a*b = 0$.

$a*b = a+b+ab = 0$

We solve for $b$:

$b+ab = -a$

$b(1+a) = -a$

If $1+a \neq 0$ (i.e., $a \neq -1$), we can divide to find $b$.

$b = \frac{-a}{1+a}$

So, the inverse of $a$ is $a^{-1} = \frac{-a}{1+a}$, but this only works if $a \neq -1$.

If $a = -1$, the equation becomes $b(0) = 1$, which is impossible.

Conclusion: Every real number $a$ except for -1 has an inverse, which is $\frac{-a}{1+a}$. The element -1 is not invertible.


Example 6. On the set of rational numbers $Q$, a binary operation $*$ is defined by $a*b = \frac{ab}{4}$. Check the properties of this operation.

Answer:

The set is $Q$ (rational numbers) and the operation is $a*b = \frac{ab}{4}$.

1. Closure: If $a$ and $b$ are rational, their product $ab$ is rational. Dividing by 4 also results in a rational number. So, $\frac{ab}{4} \in Q$. The operation is a valid binary operation.

2. Commutativity:

$a*b = \frac{ab}{4}$

$b*a = \frac{ba}{4}$

Since multiplication of rational numbers is commutative ($ab=ba$), we have $a*b = b*a$. The operation is commutative.

3. Associativity:

$(a*b)*c = \left(\frac{ab}{4}\right)*c = \frac{(\frac{ab}{4})c}{4} = \frac{abc}{16}$

$a*(b*c) = a*\left(\frac{bc}{4}\right) = \frac{a(\frac{bc}{4})}{4} = \frac{abc}{16}$

Since the results are equal, the operation is associative.

4. Identity Element:

We need an element $e$ such that $a*e = a$.

$\frac{ae}{4} = a$

$ae = 4a$

$e = 4$ (assuming $a \neq 0$).

Let's verify: $a*4 = \frac{a \times 4}{4} = a$. And $4*a = \frac{4 \times a}{4} = a$. The identity element is $e=4$.

5. Inverse Element:

For an element $a \in Q$, we need to find an inverse $b$ such that $a*b = e = 4$.

$\frac{ab}{4} = 4$

$ab = 16$

$b = \frac{16}{a}$

This inverse exists for any rational number $a$ except for $a=0$. The inverse of $a$ is $a^{-1} = \frac{16}{a}$ (for $a \neq 0$).

Conclusion: The operation is commutative and associative, has an identity element $e=4$, and every non-zero rational number has an inverse.

5. Operation Table (Cayley Table)

For a binary operation on a finite set, we can represent all possible outcomes in a square grid called an operation table or a Cayley table. The rows and columns are headed by the elements of the set. The entry at the intersection of row 'a' and column 'b' is the result of the operation $a*b$.

Example 7. Let $S = \{1, 2, 3, 4\}$. Consider the binary operation $*_5$ (multiplication modulo 5), defined as $a *_5 b = (a \times b) \pmod 5$. Construct the operation table and check its properties.

Answer:

We calculate $a \times b$ for each pair and find the remainder when divided by 5.

For example, $3 *_5 4 = (3 \times 4) \pmod 5 = 12 \pmod 5 = 2$.

The complete operation table is:

$*_5$1234
11234
22413
33142
44321

Now, let's check the properties using the table:

1. Closure: All the entries inside the table are {1, 2, 3, 4}. No new elements are created. So, the set is closed under $*_5$.

2. Commutativity: The table is symmetric about the main diagonal (top-left to bottom-right). For example, the entry at (row 2, col 3) is 1, and the entry at (row 3, col 2) is also 1. This holds for all pairs. The operation is commutative.

3. Identity Element: Look for a row that matches the header row. Row 1 is {1, 2, 3, 4}. The element heading this row is 1. Now check the column headed by 1. It is {1, 2, 3, 4}, which matches the left-side header. Therefore, the identity element is $e=1$.

4. Inverse Elements: We look for the identity element (1) in each row.

  • In row 1, the '1' is in column 1. So, the inverse of 1 is 1. ($1^{-1}=1$)
  • In row 2, the '1' is in column 3. So, the inverse of 2 is 3. ($2^{-1}=3$)
  • In row 3, the '1' is in column 2. So, the inverse of 3 is 2. ($3^{-1}=2$)
  • In row 4, the '1' is in column 4. So, the inverse of 4 is 4. ($4^{-1}=4$)

Since the identity element '1' appears exactly once in every row and column, every element has a unique inverse.